// import allRoutes from "./allRoutes"
const dynamicRoutes = [{
        path: "/",
        component: () => import( /*webpackChunkName:"home"*/ "../pages/Home"),
        redirect: "/welcome",
        children: [{
                path: "vipmanager",
                component: () =>
                    import( /*webpackChunkName:"vipmanager" */ "../pages/Home/VipManager"),
                name: "vipmanager",
                meta: {
                    //储存一些属性
                    fullPath: "/vipmanager",
                    icon: "iconfont icon-vip",
                    name: "vip充值管理",
                },
                children: [{
                        path: "charge",
                        component: () =>
                            import( /*webpackChunkName:'charge'*/ "../pages/Home/VipManager/Charge"),
                        // 路由元信息
                        name: "charge", //具名路由
                        meta: {
                            //储存一些用户定义的属性
                            name: "vip充值",
                            icon: "iconfont", //存菜单对应的图标的类名
                            fullPath: "/vipmanager/charge", //当前路由的完整路径
                        }
                    },
                    {
                        path: "order",
                        component: () =>
                            import( /*webpackChunkName:'order'*/ "../pages/Home/VipManager/Order"),
                        // 路由元信息
                        name: "order", //具名路由
                        meta: {
                            //储存一些用户定义的属性
                            name: "订单管理",
                            icon: "iconfont", //存菜单对应的图标的类名
                            fullPath: "/vipmanager/order", //当前路由的完整路径
                        }
                    }
                ]
            },
            {
                path: "pre_order",
                component: () => import( /**webpackChunkName:"pre_order" */ "../pages/Home/PreOrder"),
                name: "pre_order",
                meta: {
                    name: "预支付",
                }

            },
            {
                path:"payment",
                component:()=>import(/**webpackChunkName:"payment" */"../pages/Home/payMent"),
                name: "payment",
                meta: {
                    name: "支付主页",
                },
                children:[
                    {
                        path: "pay",
                        component: () => import(/*webpackChunkName:"pay" */"../pages/Home/payMent/Pay"),
                        name: "pay",
                        meta: {
                            name: "支付页"
                        }
                    },
                    {
                        path: "paySuccess",
                        name: "paySuccess",
                        component: () => import(/*webpackChunkName:"paySuccess"*/"../pages/Home/payMent/PaySuccess"),
                        meta: {
                            name: "支付成功页面"
                        }
                    }
                ]
            }
        ]
        // children:allRoutes
    },
    {
        path: "*",
        component: () => import( /*webpackChunkName:"page404"*/ "../pages/Page404"),
    },

]

export default dynamicRoutes